import { PermissionModeEnum, SessionTimeoutProcessingEnum } from "@/enums/appEnum";
import { ProjectConfig } from "/#/config";

const setting: ProjectConfig = {
  sessionTimeoutProcessing: SessionTimeoutProcessingEnum.ROUTE_JUMP,
  openKeepAlive: false,
  lockTime: 0,
  showBreadCrumb: false,
  showBreadCrumbIcon: false,
  useErrorHandle: false,
  useOpenBackTop: false,
  canEmbedIFramePage: false,
  closeMessageOnSwitch: false,
  removeAllHttpPending: false,
  permissionMode: PermissionModeEnum.ROUTE_MAPPING,
  // Multi-tab settings
  multiTabsSetting: {
    cache: false,
    // Turn on
    show: true,
    // Is it possible to drag and drop sorting tabs
    canDrag: true,
    // Turn on quick actions
    showQuick: true,
    // Whether to show the refresh button
    showRedo: true,
    // Whether to show the collapse button
    showFold: true,
  },
  /**
   * 显示tags
   */
  getShowTabs: true,


  /**
 * @description 网站标题
 */
  title: 'GM',
  /**
   * @description 固定头部
   */
  fixedHeader: true,
  /**
   * @description 记住密码状态下的token在Cookie中存储的天数，默7天
   */
  tokenCookieExpires: 7,

  /**
   * @description 记住密码状态下的密码在Cookie中存储的天数，默认7天
   */
  passCookieExpires: 7,
  /**
   * @description 是否只保持一个子菜单的展开
   */
  uniqueOpened: true,
  /**
   * @description 请求超时时间，毫秒（默认2分钟）
   */
  timeout: 1200000,
  /**
   * @description 是否显示logo
   */
  sidebarLogo: true,
  /**
   * 是否显示设置的底部信息
   */
  showFooter: true,
  /**
   * 底部文字，支持html语法
   */
  footerTxt: '© 2021 zhang san  <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>',
  /**
   * 备案号
   */
  caseNumber: '川ICP备19950213号',
  showSettings: true,
  sidebarLayout: 'vertical',

}


export default setting